package com.joker.demo.service;


import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * @author : feixiang.li
 * @since : 2025-09-25 16:32
 */
@AiService(wiringMode = EXPLICIT, streamingChatModel = "streamingChatModel")
public interface StreamAssistant {

    /**
     * 问问题
     *
     * @param question
     * @return
     */
    String ask(String question);

    /**
     * 流式问答
     *
     * @param question
     * @return
     */
    Flux<String> askStream(String question);
}
